﻿// 系统中表示树形结构的控件
Ext.define('Kwan.ex.ClassTree', {
    extend: 'Ext.tree.Panel',
    //singleExpand: true,
    rootVisible: false,
    loadMask: true,
    region: 'west',
    collapsible: true,
    hideCollapseTool: true,
    titleCollapse: true,
    split: true,
    width: '25%',
    border: false,
    layout: 'fit',
    frame: true,
    ajaxUrl: '', // 请求数据的地址
    selectedId: '',
    initComponent: function () {
        var model = null, text = '.';
        this.store = Ext.create('Ext.data.TreeStore', {
            model: model,
            proxy: { type: 'ajax', url: this.ajaxUrl }
        });
        this.callParent(arguments);
    }
});